home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
bix03.arc
/
LBENCH.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-08-04
|
773b
|
30 lines
{TITLE: Looping BenchMarks}
(*$i-*)
program jveg_benchmarks;
const firstloop = 2;
lastloop = 20000; (* 2000 for benchmarks 5,6 *)
var loop:integer;
a,b,c,d:real;
z:integer; (* integer[6] for benchmark 3, real for benchmark 4 *)
begin
z:=0;
write('Press return to start: '); readln;
for loop:=firstloop to lastloop do
begin
(* benchmark 1 -- empty loop *)
(* benchmarks 2,3,4 -- z := z+1 *)
(* benchmark 5 -- writeln; *)
(* benchmark 6 -- a := sin(loop);
b := sqrt(loop);
c := ln(loop);
d := a*b/c; *)
end;
writeln('Finished.');
end.